<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Tambah Pelanggan</title>
</head>
<?php
	include("Koneksi.php");

		$Id=$_POST['Id'];
		$Nama_Toko=$_POST['Nama_Toko'];
		$Alamat=$_POST['Alamat'];
		$No_Telepon=$_POST['No_Telepon'];
		$Password=$_POST['Password'];
		
		$q = "INSERT INTO Pelanggan (id,Nama_Toko,Alamat,No_Telepon,Password) VALUES ($Id,'$Nama_Toko','$Alamat','$No_Telepon','$Password')";
		$rs=oci_parse($conn,$q);
		oci_execute($rs);
		if($rs){
			?>
				<html>
                <title></title>
                <head>
                <body>
                	<center><h1>DATA BERHASIL DISIMPAN</h1>
                    <form action="TambahPelanggan.php" method="post">
                    <input type="submit" value="OK" />
                    </form></center>
                </body>
                </head>
                </html>
			<?php          
		}else{
			?>
            	<html>
                <title></title>
                <head>
                <body>
                	<center><h1>DATA GAGAL DISIMPAN</h1>
                    <form action="TambahPelanggan.php" method="post">
                    <input type="submit" value="OK" />
                    </form></center>
                </body>
                </head>
                </html>
            <?php
		}
?>

<body>
</body>
</html>